// 获取轮播图数据的API端点
import { apiRequest, handleApiError } from '../../utils/apiClient';

export default defineEventHandler(async (event) => {
  try {
    //如何获取newsid 
    const query = getQuery(event)
    const agencyId = query.agencyid
    return await apiRequest("govaffair.content.agencydetail", { agencyid: agencyId }, 'post');
  } catch (error) {
    return handleApiError(error, []);
  }
});